home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 3: The Continuation / 17-Bit_The_Continuation_Disc.iso / amigan / amigan 3 / amiga / ckiker.bld < prev    next >
Encoding:
Text File  |  1994-01-27  |  2.5 KB  |  48 lines

  1. COMPILING KERMIT
  2.  
  3. Kermit has been compiled with the Lattice 3.03 compiler.  Some support has
  4. been added for the Lattice 3.04 compiler (I have a beta-test copy).  The
  5. 3.04 runtime has additional AmigaDOS support functions and differences in
  6. low level file I/O.  When compiling for 3.04, you should use define the
  7. preprocessor symbol LAT304, but Kermit has not been recently recompiled
  8. under 3.04.
  9.  
  10. The 3.03 executable is currently about 116700 bytes without debug logging.
  11. The developer's STRIPA command will remove about 1300 bytes of symbol
  12. tables.  I am not very happy about the size of Kermit.  Since Lattice
  13. uses the AmigaDOS object format, it can not currently save space by assuming
  14. that the data segment is less than 64K and using data segment relative
  15. addresses instead of absolute long addresses for accessing globals, like
  16. the Manx compiler.  I do not have the Manx compiler, so I have not tried
  17. compiling Kermit with it.  However, I have tried to write portable code.
  18. Since C-Kermit has to run on PDP-11's it should work with 16-bit ints.
  19.  
  20. Three files are provided for compiling Kermit on the Amiga.  CKIMAK.MAK
  21. contains a sample makefile.  Since many Amiga users do not have a version
  22. of make, an execute script to compile Kermit is in CKIKER.MAK.  CKIKER.LNK
  23. contains the Alink WITH file for linking Kermit.
  24.  
  25. To compile Amiga Kermit with CKIKER.MAK, you must first make the following
  26. logical assigns:
  27.    ASSIGN lc: <directory containing LC1, LC2, and ALINK commands>
  28.    ASSIGN include: <directory include directories are rooted at>
  29.    ASSIGN lib: <directory containing LC.LIB, AMIGA.LIB, and LSTARTUP.OBJ>
  30. Since CKIKER.MAK takes a parameter, you must have a directory :T for
  31. EXECUTE to create the instantiated version in.  To compile Kermit normally,
  32. change the current directory to the directory containing the C source files
  33. and enter
  34.    EXECUTE CKIKER.MAK
  35. To create a version of Kermit with debug and transaction logging available,
  36. enter:
  37.    EXECUTE CKIKER.MAK "-DDEBUG -DTLOG"
  38. Compilation will produce a fairly large number of lint-style warning
  39. messages, usually about potentially uninitialized auto variables.  These
  40. cannot be turned off but they can be ignored.
  41.  
  42. On a two disk system, Kermit takes 35 minutes to compile.  I generally work
  43. with a boot disk containing the include files, library files, both passes
  44. of the compiler, and the linker.  Any libraries, commands, and other files
  45. unnecessary for development using CLI only are of course stripped.  If you
  46. have a single disk system, you will probably need to modify the CKIKER.MAK
  47. script to reduce disk swapping.
  48.